﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Practices.Unity;
using Wicresoft.UnifyShow.Business;

namespace Wicresoft.UnifyShow.Portal.Controllers
{
    public class ExampleController : Controller
    {
        private IExample example;

        protected override void Dispose(bool disposing)
        {
            ((IDisposable)example).Dispose();
        }

        [InjectionConstructor]
        public ExampleController(IExample e)
        {
            example = e;
        }

        //
        // GET: /Example/
        public ActionResult Index()
        {
            return View(example.GetListExampleByName("Hello"));
        }

    }
}
